package com.lvyq.repository;

import com.lvyq.model.bag.MyWareHouse;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface MyWareHouseRepository extends MongoRepository<MyWareHouse,String> {
    MyWareHouse findByOpenIdAndGoodsName(String openId,String goodsName);

    MyWareHouse findByOpenIdAndGoodsNameAndType(String openId,String goodsName,Integer type);
    List<MyWareHouse> findByOpenIdAndType(String openId,Integer type);


}
